//
//  NetAPIManager.h
//  dongbo
//
//  Created by 葛殿宏 on 16/2/22.
//  Copyright © 2016年 arenacloud. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NetAPIManager : NSObject

+ (instancetype)sharedManager;

- (void)request_LoginWithUsername:(NSString *)username password:(NSString *)password WithBlock:(void (^)(id data, NSError *error))block;

- (void)request_RoomlistWithBlock:(void (^)(id data, NSError *error))block;

- (void)request_CreateWithRoomname:(NSString *)name password:(NSString *)password ticket:(NSString *)ticket cover:(NSString *)coverUrl roomId:(NSString *)roomId isCreate:(BOOL)isCreate WithBlock:(void (^)(id data, NSError *error))block;

- (void)request_Pay:(NSString *)price WithBlock:(void (^)(id data, NSError *error))block;

- (void)request_FeedBackWithContent:(NSString *)content phone:(NSString *)phone mail:(NSString *)mail WithBlock:(void (^)(id data, NSError *error))block;

-(void)request_uploadImage:(UIImage *)image andBlock:(void (^)(id data, NSError *error))block;

- (void)request_openOrCloseStreamWithId:(NSString *)roomid param:(NSString *)param WithBlock:(void (^)(id data, NSError *error))block;

- (void)request_ExpenseWithStreamId:(NSString *)streamId WithBlock:(void (^)(id data, NSError *error))block;

- (void)request_MyInfoWithBlock:(void (^)(id data, NSError *error))block;

- (void)request_deleteRoomWithId:(NSString *)roomid withBlock:(void (^)(id data, NSError *error))block;

@end
